using System;
using System.Collections.Generic;
namespace AppToolKit.Core.Flow
{
	public class MehtodRoute<T>
	{
		private Dictionary<T, MethodExecuteor> route_;
		private Decision<T> dec_;
		public void Setup(Decision<T> dec, Dictionary<T, MethodExecuteor> route)
		{
			this.dec_ = dec;
			this.route_ = route;
		}
		public void Execute()
		{
			T key = this.dec_();
			this.route_[key]();
		}
	}
}
